Skip to content

Conversation

@LukasDufek
Copy link
Contributor

No description provided.

Copy link
Collaborator

@barluq barluq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for try to implement solution into the NPM, however we should to have our NPM free from any framework dependencies (just React and TS). NextJS directived should not to be included.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is pure Next syntax and should not to be used in general FE NPM.

@LukasDufek LukasDufek requested a review from barluq January 12, 2026 15:26
Copy link
Collaborator

@barluq barluq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please avoid to push any NextJS magic to NPM. It should be pure JS/TS, nothing more. If there is a NextJS funtionality reqired, it should be handled inside NextJS per application.

package.json Outdated
"@deck.gl/react": "^9.2.2",
"@gisatcz/deckgl-geolib": "1.12.0-dev.5",
"@gisatcz/ptr-be-core": "^0.0.1-dev.9",
"@gisatcz/ptr-be-core": "^0.0.2",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"@gisatcz/ptr-be-core": "^0.0.2",
"@gisatcz/ptr-be-core": "^0.0.7",

rollup.config.js Outdated
output: [
{file: pkg.main, format: 'cjs', sourcemap: true}, // CommonJS output
{file: pkg.module, format: 'esm', sourcemap: true} // ES module output
{file: pkg.main, format: 'cjs', sourcemap: true, banner: "'use client';"}, // CommonJS output
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No NextJS magic in NPM please. We can handle this part per Next app, not in NPM. Also we dont want to have all mandatory parts use client by default (from layouts etc.)

@@ -0,0 +1,86 @@
'use client';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope

@LukasDufek LukasDufek requested a review from barluq January 15, 2026 09:46
Copy link
Collaborator

@barluq barluq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@LukasDufek LukasDufek merged commit 6ce397f into dev Jan 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants